package com.swxc.smartorder.event;

/**
 * Author   Administrator
 * Date     2018/1/18
 * Desc     eg
 *
 * @author Administrator
 */

public class SimpleEvent {


    public static final int ORDER_DETAIL = 1;

    public static final int MODIFY_PWD = 2;
    public static final int NETWORK_CHANGE = 3;
    public static final int REGISTRATION_ID = 4;
    /**
     * 操作类型
     */
    public int mEventType;
    /**
     * 操作值
     */
    public int mEventValue;

    public Object mData;


    public SimpleEvent(int mEventType) {
        this.mEventType = mEventType;
    }

    public SimpleEvent(int mEventType, int mEventValue) {
        this.mEventType = mEventType;
        this.mEventValue = mEventValue;
    }

    public SimpleEvent(int mEventType, int mEventValue, Object mData) {
        this.mEventType = mEventType;
        this.mEventValue = mEventValue;
        this.setData(mData);
    }

    /**
     * 数据对象
     */
    public Object getData() {
        return mData;
    }

    public void setData(Object data) {
        mData = data;
    }
}